import request from '@/axios'
import { LogDetailResult, LogPageParams, LogPageResultItem } from '@/api/log/types'

export const getLogPageApi = (params: LogPageParams): Promise<IResponse<LogPageResultItem[]>> => {
  return request.get({ url: `/audit-Log/page`, params })
}
export const getLogDetailApi = (id: string): Promise<IResponse<LogDetailResult>> => {
  return request.get({ url: `/audit-Log/detail/${id}` })
}
